<?php

namespace App\Mail;

use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;

class LiuYanMail extends Mailable
{
    use Queueable, SerializesModels;
     protected  $param;

    /**
     * Create a new message instance.
     *
     * @return void
     */
    public function __construct($param)
    {
        $this->param=$param;
        $this->subject='番禺区桥南街道办事处留言反馈';
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        return $this->markdown('emails.liuyan')->with([
            'name'=>$this->param['name'],
            'mobile'=>$this->param['mobile'],
            'detail'=>$this->param['detail'],
        ]);
    }
}
